package com.dzx.design.structural.flyweight;

/**
 * @author dzx
 * @ClassName:
 * @Description: 享元模式
 * @date 2019年08月08日 13:53:52
 */
public class Manager implements Employee {
    @Override
    public void report() {
        System.out.println(reportContent);
    }

    private String title = "部门经理";  //内部状态
    private String department;  //外部状态
    private String reportContent; //外部状态

    public Manager(String department) {
        this.department = department;
    }

    public void setReportContent(String reportContent) {
        this.reportContent = reportContent;
    }
}
